package com.sskjdata.cg;


import org.apache.catalina.filters.RequestDumperFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @Descirption 启动项目类
 * @Author Jason
 */
@SpringBootApplication
@MapperScan("com.sskjdata.cg.dao")
@EnableCaching
@EnableTransactionManagement
public class ChooseGoodsApplication {
    /**
     * @Description 启动项目
     * @Author Jason
     * @Date 2019/11/28
     * @param args
     * @return void
     */
    public static void main(String[] args) {
        SpringApplication.run(ChooseGoodsApplication.class, args);
        System.out.println("[ 智能选品项目启动成功! ] version:1.0");
    }


    /**
     * 为测试环境添加相关的 Request Dumper information，便于调试
     * @return
     */
    //@Profile("!pro")
    @Bean
    RequestDumperFilter requestDumperFilter() {

        return new RequestDumperFilter();
    }

}
